package com.teamwe.movecard.repository;

import com.teamwe.movecard.domain.Problem;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface ProblemPageRepository extends PagingAndSortingRepository<Problem, Integer> {

    /**
     * 分页查询题目
     * @param grade
     * @param pageable
     * @return
     */
    Page<Problem> findByGrade(String grade, Pageable pageable);
}
